import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import axios from 'axios';
import 'vant/lib/index.css'
import router from './router'
import { 
  Button,
  Form,
  Field,
  CellGroup,
  Toast,
  Checkbox,  // 添加 Checkbox
  CheckboxGroup  // 添加 CheckboxGroup
} from 'vant'

const app = createApp(App)
// 注册 vant 组件
app.use(Button)
app.use(Form)
app.use(Field)
app.use(CellGroup)
app.use(Toast)
app.use(Checkbox)      // 注册 Checkbox
app.use(CheckboxGroup) // 注册 CheckboxGroup
app.config.globalProperties.$axios = axios;
app.use(router)

// 挂载应用
app.mount('#app');